<%-- 
    Document   : inquiry_update
    Created on : Dec 9, 2008, 10:32:10 PM
    Author     : hp02
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">

<table>
    <tr>
        <td class="menucon">
            <html:link action="/inquiry_getinquiries.do" title="Go to main.">Inquiries</html:link>
        </td>
    </tr>
</table>
<html:messages id="messages" property="customMessage" message="true">
    <div class="heading4"><bean:write name="messages"/></div>
</html:messages>
<html:errors/>
<html:messages id="messages" property="message" message="true">
    <ul>
        <li><bean:write name="messages"/></li>
    </ul>
</html:messages>
<html:form action="/inquiry_update.do" method="post">
    <html:hidden property="id"/>
    <table>
        <tr>
            <td>Quotation Number</td>
            <td>:</td>
            <td><html:text readonly="true" property="noQuotation"/></td>
        </tr>
        
        <tr>
            <td>Sales</td>
            <td>:</td>
            <td>
                <html:select property="sales">
                    <c:forEach items="${sales}" var="s">
                        <html:option value="${s.id}">${s.nama}</html:option>
                    </c:forEach>
                </html:select>
            </td>
        </tr>
        <tr>
            <td>Projects</td>
            <td>:</td>
            <td>
                <html:select property="project">
                    <c:forEach items="${projects}" var="p">
                        <html:option value="${p.id}">${p.nama}</html:option>
                    </c:forEach>
                </html:select>
            </td>
        </tr>
        <tr>
            <td>Product Specification</td>
            <td>:</td>
            <td>
                <html:select property="productSpec">
                    <c:forEach items="${productSpecs}" var="ps">
                        <html:option value="${ps.id}">${ps.nama}</html:option>
                    </c:forEach>
                </html:select>
            </td>
        </tr>
        <tr>
            <td>Standard Specification</td>
            <td>:</td>
            <td>
                <html:select property="standartSpec">
                    <c:forEach items="${standardSpecs}" var="ss">
                        <html:option value="${ss.id}">${ss.nama}</html:option>
                    </c:forEach>
                </html:select>
            </td>
        </tr>
        <tr>
            <td>Finishing</td>
            <td>:</td>
            <td>
                <html:select property="finishing">
                    <c:forEach items="${finishings}" var="f">
                        <html:option value="${f.id}">${f.nama}</html:option>
                    </c:forEach>
                </html:select>
            </td>
        </tr>
        <tr>
            <td>Contractor</td>
            <td>:</td>
            <td>
                <html:select property="kontraktor">
                    <c:forEach items="${contactors}" var="c">
                        <html:option value="${c.id}">${c.nama}</html:option>
                    </c:forEach>
                </html:select>
            </td>
        </tr>
        <tr>
            <td>Consultant</td>
            <td>:</td>
            <td>
                <html:select property="konsultan">
                    <c:forEach items="${consultants}" var="consultant">
                        <html:option value="${consultant.id}">${consultant.nama}</html:option>
                    </c:forEach>
                </html:select>
            </td>
        </tr>
        <tr>
            <td valign="top">Address</td>
            <td valign="top">:</td>
            <td><html:textarea property="alamat"></html:textarea></td>
        </tr>
        <tr>
            <td>Branch Office</td>
            <td>:</td>
            <td>
                <html:select property="cabang">
                    <c:forEach items="${cabangs}" var="cab">
                        <html:option value="${cab.id}">${cab.kota}</html:option>
                    </c:forEach>
                </html:select>
            </td>
        </tr>
        <tr>
            <td colspan="3"><html:submit value="Update Now"/></td>
        </tr>
    </table>
</html:form>
